package top.jamsee.service;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import top.jamsee.entity.Buy_data;
import top.jamsee.entity.ResultInfo;

import javax.servlet.http.HttpServletRequest;
import java.util.Date;
import java.util.List;
import java.util.Map;

public interface BuyService {
     //查询数据(分页后)
     public List<List> SelectBuyData(int pageNum);
     //删除数据
     public int deleteBuyData(int id);
     //查询有多少条数据
     public int selectBuyNum();
     //添加记录
     public ResultInfo addBuyData(Buy_data buy_data, HttpServletRequest request);
     //模糊查询buy表
     public List<Buy_data> selectBuyByData(int pageNum,String data);
     //模糊查询buy表的所有数量方便后续分页
     public int selectBuyByDataNum(String data );
     //更新buy表根据id
     public ResultInfo upDateBuyById(Buy_data buy_data,HttpServletRequest request);
     //根据id查询是否有此条记录,更新表时使用
     public int selectBuyById(int id);



}
